<?php
class Pageley_Gateway_Database_MySql_DataSource implements Pageley_Gateway_Database_DataSource {
    
    private $host;
    private $port;
    private $username;
    private $password;
    
    public function __construct($host, $port, $username, $password) {
        $this->host = $host;
        $this->port = $port;
        $this->username = $username;
        $this->password = $password;
    }
    
    public function getConnection() {
        return new Pageley_Gateway_Database_MySql_Connection(
        	$this->host, $this->port, $this->username, $this->password);
    }
    
    public function decorateQuery($query, $table) {
        return new Pageley_Gateway_Database_MySql_QuerySqlDecorator($query, $table);
    }
    
    
    public function getCachePath() {
        return null;
    }
}